Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sub development #10

Open
wants to merge 40 commits into
base: master
Choose a base branch
from

Conversation

PratikKunapuli
Copy link

No description provided.

SPICS to MCPCS
MODE_NORMAL to mcpMode
Support to change operational mode of MCP2515 (sleep, listen only, etc)
Support to enable No Mask/Filter, Standard IDs Only, Extended IDs Only, or Both.
Support for 20MHz (Need to add constants to [..]dfs.h file!)
SPICS to MCPCS
MODE_NORMAL to mcpMode
Support to change operational mode of MCP2515 (sleep, listen only, etc)
Support to enable No Mask/Filter, Standard IDs Only, Extended IDs Only, or Both.
Support for 20MHz.
readMsgBuf returns ID.
SPICS to MCPCS
Support to change operational mode of MCP2515 (sleep, listen only, etc)
Support to enable No Mask/Filter, Standard IDs Only, Extended IDs Only, or Both.
Support for 20MHz.
SPICS to MCPCS
Support to change operational mode of MCP2515 (sleep, listen only, etc)
Support to enable No Mask/Filter, Standard IDs Only, Extended IDs Only, or Both.
Support for 20MHz.
readMsgBuf returns ID.
Should work now...
This sketch demos the ability for this library to support more than one CAN interface on a single Arduino.
Depreciated 'mcp2515_start_transmit' function call as it's sole purpose was to call another function and return. 
Per http://forum.arduino.cc/index.php?topic=152145.msg1654634#msg1654634
After review of the code, this appears to be correct but I need to test this before I apply it to the master branch.
Removed depreciated private function mcp2515_start_transmit
Trying to make an example sketch to demo masks and filters found and some errors...
There appears to be a further issue that I have not resolved, standard ID filtering doesn't work for me at the moment.  I have been successful with extended ID filtering before attempting to make the demo.  I think the issue lies within 'mcp2515_write_id.'
Added function to utilize mask and filter functionality of checking first two data bytes for Standard CAN ID frames. (A mask or filter entry for standard IDs will look similar Extended IDs. 0x07FF0000 The first nibble is unused, the last four nibbles are the two data bytes.)
Cleaned up function descriptions.
Removed 'getCanId' function.
Added function to utilize mask and filter functionality of checking first two data bytes for Standard CAN ID frames. (A mask or filter entry for standard IDs will look similar Extended IDs. 0x07FF0000 The first nibble is unused, the last four nibbles are the two data bytes.)
Cleaned up function descriptions.
Removed 'getCanId' function.
This demo only applies to standard IDs.
This demo only applies to extended IDs.
…d.ino

Added sent message status information. Cleaned up descriptions.
…e/CAN_receive.ino

Added initialization information to detail success or failure.
During initialization, the MCP2515 is put in loopback mode. This seems to allow the masks and filters to set without undesired behavior when connected to an operating, utilized bus.

Also uncommented the section for 8MHz crystal baud rate selection.
Added definitions for 8MHz crystal baud rate selection.
Moved MCP2515 mode change to after all initialization commands.
Moved MCP2515 mode change to after all initialization commands.
@coryjfowler
Copy link
Contributor

This is a bad idea...

Added error functions and fixed return values on public functions as a well as added two other functions for differing user preferences.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants